<?php
/**
 * @author qingyu8@staff.weibo.com
 * @date 2018/04/19
 */
namespace common\logic;

use common\models\Boat as BoatModel;
use common\models\Tour;
use common\models\Trip;
use common\logic\TripProductRel;
use common\models\Cabin as CabinModel;
use yii\helpers\Inflector;

class Cabin {
    public static function totalNum($boatId){

    }
    public static function getCabins($boatId){
        return CabinModel::getList("boat_id=$boatId");
    }
    public static function getOneCabin($id){
        $r=CabinModel::getOne("id=$id");
        return $r;
    }
}